package com.its.oa.model;

import java.util.HashSet;
import java.util.Set;

/**
 * AssetCategory entity. @author MyEclipse Persistence Tools
 */

public class AssetCategory implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Short id;
	private String code;
	private String name;
	private Set<Asset> assets = new HashSet<Asset>(0);

	// Constructors

	/** default constructor */
	public AssetCategory() {
	}

	/** full constructor */
	public AssetCategory(String code, String name, Set<Asset> assets) {
		this.code = code;
		this.name = name;
		this.assets = assets;
	}

	// Property accessors

	public Short getId() {
		return this.id;
	}

	public void setId(Short id) {
		this.id = id;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Asset> getAssets() {
		return this.assets;
	}

	public void setAssets(Set<Asset> assets) {
		this.assets = assets;
	}

}